<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<form action="login" th:action="@{/login}" method="post">
    <div th:if="${param.error}">
        <span>邮箱或密码错误!</span>
    </div>
    <input type="email" name="username" placeholder="邮箱"/>
    <input type="password" name="password" placeholder="密码"/>
    <input type="checkbox" name="remember-me">记住我
    <button type="submit">登录</button>
</form>
</body>
</html>